#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int main()
{

	pid_t pid;
	
	printf("[%d]:Begin!\n",getpid());

    


	pid = fork();

	if(pid < 0)
	{
	    perror("fork()");
		exit(1);	
	}

	if(pid ==0)  //child
	{

	printf("[%d]:Child is Working!\n",getpid());

	}
	else
	{
	
	printf("[%d]:Parent is Working!\n",getpid());
	
	}


	printf("[%d]:End!\n",getpid());


//	getchar();

	exit(0);
}
